Skip to content

fix: remove extraneous source.description schema property; clarify entity.description covers MCP#3552

Merged
Aniruddh25 merged 8 commits into
mainfrom
copilot/fix-extraneous-source-description
May 20, 2026
Merged

fix: remove extraneous source.description schema property; clarify entity.description covers MCP#3552
Aniruddh25 merged 8 commits into
mainfrom
copilot/fix-extraneous-source-description

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 13, 2026

Why make this change?

entities.*.source.description existed in the JSON schema with documentation claiming it drove MCP tool discovery — but it was never wired to any C# model (EntitySource has no Description field) and was silently ignored at runtime. Meanwhile, entities.*.description — the field that actually surfaces in MCP — made no mention of MCP. Users following the schema would configure the wrong field and get no MCP output with no error.

What is this change?

  • Removed entities.*.source.description from schemas/dab.draft.schema.json. The property never had a backing field in EntitySource and was dead schema surface area.
  • Fixed trailing comma left after removing the description property (which was the last property in the source object's properties block).
  • Updated the description of entities.*.description to explicitly mention MCP:
- "Optional description for the entity. Will be surfaced in generated API documentation and GraphQL schema as comments."
+ "Optional description for the entity. Will be surfaced in MCP tool discovery, generated API documentation, and GraphQL schema as comments."

The correct config pattern for MCP-visible descriptions is:

"Todo": {
  "description": "Manages to-do items — surfaced in MCP, REST docs, and GraphQL schema.",
  "source": {
    "object": "dbo.Todos",
    "type": "table"
  }
}

How was this tested?

  • Integration Tests
  • Unit Tests

Schema-only change; no runtime behavior altered. The removed property had no backing model field and was never deserialized. JSON validity confirmed via python3 -m json.tool.

Sample Request(s)

N/A — schema documentation fix only.

…cription to mention MCP

Agent-Logs-Url: https://github.com/Azure/data-api-builder/sessions/2aa78b8c-2875-4f50-a041-233f820d3d83

Co-authored-by: Aniruddh25 <3513779+Aniruddh25@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix extraneous source.description property in JSON schema fix: remove extraneous source.description schema property; clarify entity.description covers MCP May 13, 2026
Copilot AI requested a review from Aniruddh25 May 13, 2026 23:32
@Aniruddh25 Aniruddh25 marked this pull request as ready for review May 18, 2026 22:31
Copilot AI review requested due to automatic review settings May 18, 2026 22:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Cleans up the DAB JSON schema by removing a dead entities.*.source.description property (never bound to EntitySource) and updating entities.*.description to mention that it surfaces in MCP tool discovery — guiding users to the field that actually drives MCP output.

Changes:

  • Removed unused source.description property from the entity source schema.
  • Expanded the entity.description documentation to include MCP tool discovery.

@Aniruddh25
Copy link
Copy Markdown
Collaborator

/azp run

@Aniruddh25 Aniruddh25 removed their assignment May 18, 2026
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 6 pipeline(s).

@souvikghosh04 souvikghosh04 moved this from Todo to Review In Progress in Data API builder May 19, 2026
@souvikghosh04 souvikghosh04 added this to the May 2026 milestone May 19, 2026
Comment thread schemas/dab.draft.schema.json
Copilot AI requested a review from Aniruddh25 May 19, 2026 21:54
@Aniruddh25 Aniruddh25 merged commit f3d159d into main May 20, 2026
12 checks passed
@Aniruddh25 Aniruddh25 deleted the copilot/fix-extraneous-source-description branch May 20, 2026 01:17
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Data API builder May 20, 2026
aaronburtle added a commit that referenced this pull request May 20, 2026
…rty (#3552) (#3612)

Cherry-pick of #3552 from `main` to `release/2.0`.

**Original PR:** fix: remove extraneous `source.description` schema
property; clarify `entity.description` covers MCP (#3552)
**Cherry-picked commit:** f3d159d

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Souvik Ghosh <souvikofficial04@gmail.com>
Co-authored-by: aaronburtle <93220300+aaronburtle@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: Critical. Entity has extraneous, confusing property source.description.

5 participants